package com.mrx.compose.demo.view

import androidx.compose.runtime.Composable
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import org.slf4j.Logger
import org.slf4j.LoggerFactory

abstract class ComposeView : CoroutineScope {

    override val coroutineContext = Dispatchers.Default

    protected val logger: Logger = LoggerFactory.getLogger(javaClass)

    @Composable
    abstract fun showView(onRouterChanged: (String) -> Unit)

}
